import { stringify } from 'qs';
import request from '@/utils/request';

export async function searchBatchFileimportTask(params) {
  return request(`/api/admin/batch/batchFileimportTask/search?${stringify(params)}`);
}
export async function getBatchFileimportTask(params) {
  return request(`/api/admin/batch/batchFileimportTask/${params}`);
}
export async function saveBatchFileimportTask(params) {
  return request(`/api/admin/batch/batchFileimportTask`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function removeBatchFileimportTask(params) {
  return request(`/api/admin/batch/batchFileimportTask/remove`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
